package com.senlan.water.dto.policy;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 政策宣发
 * @TableName policy_publicity
 */
@Data
public class PolicyPublicityEditDTO implements Serializable {

    /**
     * id
     */
    @NotNull(message = "id不能为空")
    private Long id;
    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Size(max = 50, message = "标题长度不能超过50")
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    @Size(max = 500, message = "内容长度不能超过500")
    private String content;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空")
    @Size(max = 50, message = "链接长度不能超过50")
    private String url;
}